import { NgModule } from '@angular/core';
import { SharedModule } from '@shared/shared.module';
import { GoodsRoutingModule } from './goods-routing.module';
import { GoodsListComponent } from './goods-list/goods-list.component';
import { GoodsTypeListComponent } from './goods-type-list/goods-type-list.component';
import { GoodsTypeEditComponent } from './goods-type-list/goods-type-edit/goods-type-edit.component';
import { GoodsEditComponent } from './goods-list/goods-edit/goods-edit.component';
import { Step1Component } from './goods-list/step/step1.component';
import { Step2Component } from './goods-list/step/step2.component';
import { Step3Component } from './goods-list/step/step3.component';
import { GoodsAddComponent } from './goods-list/goods-add/goods-add.component';
import { GoodsClassService } from '@core/routes-services/goods-class.service';
import { GoodsService } from '@core/routes-services/goods.service';
import { GoodsSortComponent } from './goods-sort/goods-sort.component';

const COMPONENTS = [
  GoodsListComponent,
  GoodsTypeListComponent,
  GoodsSortComponent];
const COMPONENTS_NOROUNT = [
  Step1Component,
  Step2Component,
  Step3Component,
  GoodsEditComponent,
  GoodsAddComponent,
  GoodsTypeEditComponent];

@NgModule({
  imports: [
    SharedModule,
    GoodsRoutingModule
  ],
  declarations: [
    ...COMPONENTS,
    ...COMPONENTS_NOROUNT,
  ],
  entryComponents: COMPONENTS_NOROUNT,
  providers:[
    GoodsService,
    GoodsClassService,
  ]
})
export class GoodsModule { }
